package org.ssssssss.magicapi.mock;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.ssssssss.magicapi.core.config.MagicAPIProperties;
import org.ssssssss.magicapi.core.config.MagicPluginConfiguration;
import org.ssssssss.magicapi.core.model.Plugin;

@Configuration
public class MagicMockConfiguration implements MagicPluginConfiguration {

	private final MagicAPIProperties properties;

	public MagicMockConfiguration(MagicAPIProperties properties) {
		this.properties = properties;
	}

	/**
	 * 注入mock模块
	 */
	@Bean
	public MockModule mockFunctions() {
		return new MockModule();
	}

	@Override
	public Plugin plugin() {
		return new Plugin("Mock");
	}
}
